Log in Register Dashboard Temp Share Shortlinks Frames API

cody - HTMLify profile

cody's Profile Picture

cody

4270 Files

633450 Views

Latest files of /cody/swapnilsparsh/30DaysOfJavaScript/11 - Color Picker

font/ cody/swapnilsparsh/30DaysOfJavaScript/11 - Color Picker/font/
1 Items
  • sans.ttf
  • assets/ cody/swapnilsparsh/30DaysOfJavaScript/11 - Color Picker/assets/
    1 Items
  • color-picker.png
  • style.css cody/swapnilsparsh/30DaysOfJavaScript/11 - Color Picker/style.css
    96 Views
    0 Comments
    * {
    margin: 0;
    padding: 0;
    }

    body {
    background: #19172e;
    font-family: "sans";
    index.html cody/swapnilsparsh/30DaysOfJavaScript/11 - Color Picker/index.html
    321 Views
    0 Comments
    <!DOCTYPE html>
    <html lang="en">

    <head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="shortcut icon" href="assets/color-picker.png" type="image/x-icon">
    script.js cody/swapnilsparsh/30DaysOfJavaScript/11 - Color Picker/script.js
    151 Views
    0 Comments
    // Get color input by id
    const colorPicker = document.getElementById('color-picker');

    // Default background
    colorPicker.value = '#06020F';

    function hexToRgbNew(input) {
    var hex= input.slice(1)